import 'package:flutter/material.dart';

class RegisterSecondPage extends StatelessWidget {
  const RegisterSecondPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("注册第二步"),
      ),
      body: Column(
        children: <Widget>[
          Text("这是注册2界面"),
          RaisedButton(
            onPressed: () {
              Navigator.pushNamed(context, '/registerThird');
              // Navigator.of(context)
              //     .pushReplacementNamed('/registerThird'); //页面替换
            },
            child: Text("下一步"),
          ),
        ],
      ),
    );
  }
}
